package cn.tedu._05mvcboot03.mapper;

import cn.tedu._05mvcboot03.pojo.entity.MvcArticle;
import cn.tedu._05mvcboot03.pojo.vo.ArticleVO;
import cn.tedu._05mvcboot03.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Param;


public interface MvcUserMapper {
    //根据用户名查询用户id、密码、昵称,查询用户是否存在
    abstract UserVO selectByUsername(@Param(value = "username") String username, @Param(value = "password") String password);

    //发表文章
    abstract int insertArticle(MvcArticle mvcArticle);

    //查询文章
    abstract ArticleVO selectByArticleId(Integer id);
}
